<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<body>
<h2>Hello World!</h2>
<p>欢迎使用此系统！</p>
<a href="login.jsp" >登录</a>
<a href="reg.jsp" >注册</a>
<%Cookie[] cookie=request.getCookies();
    if(cookie !=null && cookie.length>0){
        for(Cookie cookies:cookie){
            if(cookies.getName().equals("logininfo")){
%>
<%="Name()="+cookies.getName()+"value+"+cookies.getValue()%>
<%
            }
        }
    }%>
</body>
</html>
